package com.springboot.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangning
 * @create 2021-05-18 10:43
 */
@RestController
public class HelloController {
	@GetMapping("/hello")
	public String hello() {
		return "Hello World";
	}

	@GetMapping("/admin/hello")
	public String admin() {
		return "Hello admin";
	}

	@GetMapping("/user/hello")
	public String user() {
		return "Hello user";
	}

	@GetMapping("/db/hello")
	public String dba() {
		return "Hello dba";
	}
}
